deleteUser

  • function
 

Confirms that the user would like to delete his or her account, then destroys the user and when successful:

viewmodel.deleteUser()

Confirms that the user would like to delete his or her account, then destroys the user and when successful:

- Logs the user out, destroying the current session
- Changes the page route from "account" to "register"